/*
 * @Author: ??????
 */

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        // int a= scan.nextInt() ;
        // int b= scan.nextInt() ;
        // System.out.println(a>b?a:b);
        boolean c= true;
        boolean d=false;
        System.out.println(c&d);
        // int e =scan.nextInt();
        // System.out.println((e%3==0)?"??":"????");
         System.out.println((scan.nextInt()%3==0)?"??":"????");
    }
}
